import React, { Component } from 'react'
import Style from './ModalboxStyle.module.css'

export default class Modalbox extends Component {
    render() {
        return (
            <div className={Style.modalbox}>
                <div className={Style.box}>
                    {this.props.children}
                    <br/>
                    <input value={this.props.con} onChange={(event)=>this.props.change(event)} type="text"/>
                    <button onClick={()=>this.props.submit(this.props.id)}>提交</button>
                    <button onClick={()=>this.props.close()}>取消</button>
                </div>
            </div>
        )
    }
}
